#include <iostream>
#include "stats.h"

using namespace std;

int stats_test() 
{
	vector A={0.0};
	double average,ans,st_dev; 
	int i,N;
	average=0.0;
	ans=0.0;

	cout << "Enter the number of values (up to 10) for which you wish to evaluate " <<endl; 
	cout <<         "the standard deviation" << endl;
	cin >> N;

	cout << "Enter the " << N << " values separated by return after each\n";
	for (i=1; i<=N; i++)  
	{
		cin >> A[i-1];
	} 

	average = mean(A, N);

	cout << "average: " << average << endl; 

	st_dev = stdDev(A, N, average);

	cout << "standard deviation: " << st_dev << endl;

	return 0;
}
